package com.dcw.lixb.designmode.mediator;

/**
 * @author lixiaobin
 * @date 2020-07-28 14:50:14
 * @desc 中介模式
 */
public class MediatorMain {
    public static void main(String[] args) {
        User robert = new User("Robert");
        User john = new User("John");

        robert.sendMessage("Hi! John!");
        john.sendMessage("Hello! Robert!");
        robert.sendMessage("你是SB吗");
        john.sendMessage("Yes,I am!");

    }
}
